package com.test.controller;

import com.test.entity.UserBorrowDetail;
import com.test.service.BorrowService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/*
 **@Author:youpeng
 **Created on 2022/4/15
 */
@RestController
public class BorrowController {

    @Resource
    BorrowService borrowService;
    
    @RequestMapping("/borrow/{uid}")
    public UserBorrowDetail findBorrowByUid(@PathVariable("uid") int uid){
        return borrowService.getBorrowByUid(uid);
    }

}
